package interfazgrafikoak;

import javax.swing.SwingUtilities;
import java.awt.BorderLayout;
import javax.swing.JPanel;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import java.awt.Dimension;

public class TestuEremua extends JFrame {

	private static final long serialVersionUID = 1L;

	private JScrollPane jScrollPane = null;
	private JPanel jContentPane = null;

	private GoikoZatia goikoZatia = null;

	private JLabel jLabel = null;

	private JTextArea jTextArea = null;

	/**
	 * This method initializes goikoZatia	
	 * 	
	 * @return interfazgrafikoak.GoikoZatia	
	 */
	private GoikoZatia getGoikoZatia() {
		if (goikoZatia == null) {
			goikoZatia = new GoikoZatia();
		}
		return goikoZatia;
	}

	/**
	 * This method initializes jTextArea	
	 * 	
	 * @return javax.swing.JTextArea	
	 */
	private JTextArea getJTextArea() {
		if (jTextArea == null) {
			jTextArea = new JTextArea();
			jTextArea.setColumns(30);
			jTextArea.setRows(5);

		}
		return jTextArea;
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				TestuEremua thisClass = new TestuEremua();
				thisClass.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
				thisClass.setVisible(true);
			}
		});
	}

	/**
	 * This is the default constructor
	 */
	public TestuEremua() {
		super();
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		this.setSize(348, 188);
		this.setContentPane(getJContentPane());
		this.setTitle("JFrame");
	}

	/**
	 * This method initializes jContentPane
	 * 
	 * @return javax.swing.JPanel
	 */
	private JPanel getJContentPane() {
		if (jContentPane == null) {
			jLabel = new JLabel();
			jLabel.setText("Utzi zure mezua:");
			jContentPane = new JPanel();
			jContentPane.setLayout(new BorderLayout());
			jContentPane.add(getGoikoZatia(), BorderLayout.NORTH);
			jContentPane.add(jLabel, BorderLayout.CENTER);
			jContentPane.add(getJTextArea(), BorderLayout.SOUTH);
		}
		return jContentPane;
	}

}  //  @jve:decl-index=0:visual-constraint="88,27"
